<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录验证信息</title>
</head>
<body>

<%
	request.setCharacterEncoding("utf-8");

	String strName=request.getParameter("userName");
	String strPwd=request.getParameter("password");
	String strVerifyCode=request.getParameter("VerifiCode");
	
	String Code=session.getAttribute("code").toString();
	if(Code.equals(strVerifyCode)){
		if(strName.equals("admin")&& strPwd.equals("123456")){
			session.setAttribute("userName", strName);
			session.setAttribute("password", strPwd);
			response.sendRedirect("LoginInfo.jsp");
		}
		else{
			response.sendRedirect("Login.jsp?msg=0");
		}
		
	}
	else{
		response.sendRedirect("Login.jsp?msg=1");
	}
%>












</body>
</html>